
<div id="home-categories">
		<?php if ($categories) { ?>
            <?php foreach ($categories as $category) { ?>
			<div class="smallbox">
            	<a href="<?php echo $category['href']; ?>">
				<img src="<?php echo $category['thump']; ?>" alt="<?php echo $category['name']; ?>">
				<h5><?php echo $category['name']; ?></h5>
                </a>
                
				<?php foreach ($category['children'] as $children ) { ?>
                	<?php echo  $children['name']; ?><br>
				<?php } ?>
                
				<a class="readmore" href="<?php echo $category['href']; ?>">Виж всички &raquo;</a><br>
			</div>
		 <?php } ?>
	<?php } ?>			
</div>   